home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 December / Chip_2002-12_cd1.bin / oddech / tobogan / Toboggan_Run.exe / scripts / DefineButton2_667 / BUTTONCONDACTION on(release).as
Text File  |  2002-05-24  |  895b  |  34 lines

  1. on(release){
  2.    _parent.gamecontrol.attempt = 1;
  3.    _parent.gamecontrol.level += 1;
  4.    if(_parent.gamecontrol.level == 2)
  5.    {
  6.       _root.pushmovie.ringtop.gotoAndPlay("level2start");
  7.    }
  8.    else if(_parent.gamecontrol.level == 3)
  9.    {
  10.       _root.pushmovie.ringtop.gotoAndPlay("level3start");
  11.    }
  12.    else if(_parent.gamecontrol.level == 4)
  13.    {
  14.       _root.pushmovie.ringtop.gotoAndPlay("level4start");
  15.    }
  16.    else if(_parent.gamecontrol.level == 5)
  17.    {
  18.       _root.pushmovie.ringtop.gotoAndPlay("level5start");
  19.    }
  20.    else if(_parent.gamecontrol.level == 6)
  21.    {
  22.       _root.pushmovie.ringtop.gotoAndPlay("level6start");
  23.    }
  24.    else if(_parent.gamecontrol.level >= 7)
  25.    {
  26.       _root.pushmovie.ringtop.gotoAndPlay("bonusround");
  27.    }
  28.    else if(_parent.gamecontrol.level >= 8)
  29.    {
  30.       _root.gotoAndPlay("credits");
  31.    }
  32.    _parent.gotoAndPlay(1);
  33. }
  34.